package com.wzcl.app.model.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;


@Data
public class CourseCommentDto extends BaseDto {

    @NotNull(message = "课程Id不能为空")
    @ApiModelProperty(value = "课程Id")
    private Integer courseId;

    @ApiModelProperty(value = "用户Id")
    private Integer userId;

    @ApiModelProperty(value = "用户Phone")
    private String userPhone;

    @NotBlank(message = "评论不能为空")
    @ApiModelProperty(value = "评论")
    private String comment;

    @ApiModelProperty(value = "父评论Id")
    private Integer parentId;

    @ApiModelProperty("用户头像")
    private String userHeadIcon;

    @ApiModelProperty("用户头像")
    private String userNickName;
}
